package com.app.ui.adapter.base;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * 分割线
 * Created by guom on 2016/11/20.
 */

public class RVSpaceItemDecoration extends RecyclerView.ItemDecoration {
    private int space;

    public RVSpaceItemDecoration(int space) {
        this.space = space;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        outRect.bottom = space;
    }
}
